From 94e9d5fb22e235da9d06bf5c325b4a66816fef3b Mon Sep 17 00:00:00 2001 From: David Vrabel Date: Thu, 22 Mar 2012 14:26:47 +0000 Subject: [PATCH] Allow cmdline_parse() to be used with const strings Signed-off-by: David Vrabel Acked-by: Keir Fraser Committed-by: Ian Campbell --- xen/common/kernel.c | 2 +- xen/include/xen/lib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 1679dbb4f2..7141790a3e 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -48,7 +48,7 @@ static void __init assign_integer_param( } } -void __init cmdline_parse(char *cmdline) +void __init cmdline_parse(const char *cmdline) { char opt[100], *optval, *optkey, *q; const char *p = cmdline; diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h index d6f9182ec4..36b4c7f12d 100644 --- a/xen/include/xen/lib.h +++ b/xen/include/xen/lib.h @@ -56,7 +56,7 @@ do { \ struct domain; -void cmdline_parse(char *cmdline); +void cmdline_parse(const char *cmdline); int parse_bool(const char *s); /*#define DEBUG_TRACE_DUMP*/ -- 2.30.2